package 已知长宽求矩形面积和周长;

import java.util.Scanner;

public class 已知长宽求矩形面积和周长 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		double d = 0, l = 0;
		d = in.nextDouble();
		l = in.nextDouble();
		
		double girth = d*2+l*2;
		double area = d*l;
		
		System.out.println("此长为"+l+"宽为"+d+"的长方形的周长是"+girth+"，面积是"+area);
		
		
	}

}
